package com.xmg.model.message;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Map;

/**
 * @author xmg
 * @Description 文本消息
 * @email 463364973@qq.com
 * <p>
 * Date:2019/4/5 16:54
 */
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@XStreamAlias("xml")
public class TextMessage extends BaseMessage {
    /** 文本消息内容 */
    @Getter
    @Setter
    @XStreamAlias("Content")
    public String content;

    public TextMessage(Map<String, String> requestMap, String content) {
        super(requestMap);
        this.setMsgType("text");
        this.content = content;

    }
}
